package org.activision.io.scripts.interfaces;

import org.activision.Engine;
import org.activision.io.scripts.interfaceScript;
import org.activision.model.player.Player;
import org.activision.task.Task;

public class i192 extends interfaceScript {
	@Override
		public void actionButton(final Player p, int packetId, int buttonId, int buttonId2, int buttonId3) {
		switch(buttonId) {
	case 24:
		p.getCombatDefinitions().doEmote(8939, 1576, 1800);
		Engine.getEntityExecutor().schedule(new Task() {
			@Override
			public void run() {
				p.getCombatDefinitions().doEmote(8941, 1577, 2400);
				p.getMask().getRegion().teleport(2711, 5348, 0, 0);
			}
		}, 1801);
			break;
	case 40:
		p.getCombatDefinitions().doEmote(8939, 1576, 1800);
		Engine.getEntityExecutor().schedule(new Task() {
			@Override
			public void run() {
				p.getCombatDefinitions().doEmote(8941, 1577, 2400);
				p.getMask().getRegion().teleport(3212 ,3428, 0, 0);
			}
		}, 1801);
			break;
	case 72:
		p.getCombatDefinitions().doEmote(8939, 1576, 1800);
		Engine.getEntityExecutor().schedule(new Task() {
			@Override
			public void run() {
				p.getCombatDefinitions().doEmote(8941, 1577, 2400);
				p.getMask().getRegion().teleport(2755 ,2784, 0, 0);
			}
		}, 1801);
			break;
	case 43:
		p.getCombatDefinitions().doEmote(8939, 1576, 1800);
		Engine.getEntityExecutor().schedule(new Task() {
			@Override
			public void run() {
				p.getCombatDefinitions().doEmote(8941, 1577, 2400);
				p.getMask().getRegion().teleport(3221 ,3219, 0, 0);
			}
		}, 1801);
			break;
	case 46:
		p.getCombatDefinitions().doEmote(8939, 1576, 1800);
		Engine.getEntityExecutor().schedule(new Task() {
			@Override
			public void run() {
				p.getCombatDefinitions().doEmote(8941, 1577, 2400);
				p.getMask().getRegion().teleport(2964 ,3380, 0, 0);
			}
		}, 1801);
			break;
	case 51:
		p.getCombatDefinitions().doEmote(8939, 1576, 1800);
		Engine.getEntityExecutor().schedule(new Task() {
			@Override
			public void run() {
				p.getCombatDefinitions().doEmote(8941, 1577, 2400);
				p.getMask().getRegion().teleport(2757 ,3478, 0, 0);
			}
		}, 1801);
	case 57:
		p.getCombatDefinitions().doEmote(8939, 1576, 1800);
		Engine.getEntityExecutor().schedule(new Task() {
			@Override
			public void run() {
				p.getCombatDefinitions().doEmote(8941, 1577, 2400);
				p.getMask().getRegion().teleport(2662 ,3308, 0, 0);
			}
		}, 1801);
			break;
	case 25://Air Strike
		if(p.autocast == 0) {
		p.getFrames().sendConfig(108, 3);
		p.getFrames().sendChatMessage(0, "You are now autocasting Air strike.");
		p.autocast = 1;
		} else if (p.autocast == 1) {
		p.getFrames().sendConfig(108, 0);
		p.getFrames().sendChatMessage(0, "You stop autocasting Air strike.");
		p.autocast = 0;
		}
		break;
	case 27://Water Strike
		if(p.autocast == 0) {
		p.getFrames().sendConfig(108, 3);
		p.getFrames().sendChatMessage(0, "You are now autocasting Water strike.");
		p.autocast = 1;
		} else if (p.autocast == 1) {
		p.getFrames().sendConfig(108, 0);
		p.getFrames().sendChatMessage(0, "You stop autocasting Water strike.");
		p.autocast = 0;
		}
		break;
	case 30://Earth Strike
		if(p.autocast == 0) {
		p.getFrames().sendConfig(108, 3);
		p.getFrames().sendChatMessage(0, "You are now autocasting Earth strike.");
		p.autocast = 1;
		} else if (p.autocast == 1) {
		p.getFrames().sendConfig(108, 0);
		p.getFrames().sendChatMessage(0, "You stop autocasting Earth strike.");
		p.autocast = 0;
		}
		break;
	case 32://Fire Strike
		if(p.autocast == 0) {
		p.getFrames().sendConfig(108, 3);
		p.getFrames().sendChatMessage(0, "You are now autocasting Fire strike.");
		p.autocast = 1;
		} else if (p.autocast == 1) {
		p.getFrames().sendConfig(108, 0);
		p.getFrames().sendChatMessage(0, "You stop autocasting Fire strike.");
		p.autocast = 0;
		}
		break;
	case 34://Air Bolt
		if(p.autocast == 0) {
		p.getFrames().sendConfig(108, 3);
		p.getFrames().sendChatMessage(0, "You are now autocasting Air bolt.");
		p.autocast = 1;
		} else if (p.autocast == 1) {
		p.getFrames().sendConfig(108, 0);
		p.getFrames().sendChatMessage(0, "You stop autocasting Air bolt.");
		p.autocast = 0;
		}
		break;
	case 39://Water Bolt
		if(p.autocast == 0) {
		p.getFrames().sendConfig(108, 3);
		p.getFrames().sendChatMessage(0, "You are now autocasting Water bolt.");
		p.autocast = 1;
		} else if (p.autocast == 1) {
		p.getFrames().sendConfig(108, 0);
		p.getFrames().sendChatMessage(0, "You stop autocasting Water bolt.");
		p.autocast = 0;
		}
		break;
	case 42://Earth Bolt
		if(p.autocast == 0) {
		p.getFrames().sendConfig(108, 3);
		p.getFrames().sendChatMessage(0, "You are now autocasting Earth bolt.");
		p.autocast = 1;
		} else if (p.autocast == 1) {
		p.getFrames().sendConfig(108, 0);
		p.getFrames().sendChatMessage(0, "You stop autocasting Earth bolt.");
		p.autocast = 0;
		}
		break;
	case 45://Fire Bolt
		if(p.autocast == 0) {
		p.getFrames().sendConfig(108, 3);
		p.getFrames().sendChatMessage(0, "You are now autocasting Fire bolt.");
		p.autocast = 1;
		} else if (p.autocast == 1) {
		p.getFrames().sendConfig(108, 0);
		p.getFrames().sendChatMessage(0, "You stop autocasting Fire bolt.");
		p.autocast = 0;
		}
		break;
	case 49://Air Blast
		if(p.autocast == 0) {
		p.getFrames().sendConfig(108, 3);
		p.getFrames().sendChatMessage(0, "You are now autocasting Air blast.");
		p.autocast = 1;
		} else if (p.autocast == 1) {
		p.getFrames().sendConfig(108, 0);
		p.getFrames().sendChatMessage(0, "You stop autocasting Air blast.");
		p.autocast = 0;
		}
		break;
	case 52://Water Blast
		if(p.autocast == 0) {
		p.getFrames().sendConfig(108, 3);
		p.getFrames().sendChatMessage(0, "You are now autocasting Water blast.");
		p.autocast = 1;
		} else if (p.autocast == 1) {
		p.getFrames().sendConfig(108, 0);
		p.getFrames().sendChatMessage(0, "You stop autocasting Water blast.");
		p.autocast = 0;
		}
		break;
	case 58://Earth Blast
		if(p.autocast == 0) {
		p.getFrames().sendConfig(108, 3);
		p.getFrames().sendChatMessage(0, "You are now autocasting Earth blast.");
		p.autocast = 1;
		} else if (p.autocast == 1) {
		p.getFrames().sendConfig(108, 0);
		p.getFrames().sendChatMessage(0, "You stop autocasting Earth blast.");
		p.autocast = 0;
		}
		break;
	case 38://Fire Blast
		if(p.autocast == 0) {
		p.getFrames().sendConfig(108, 3);
		p.getFrames().sendChatMessage(0, "You are now autocasting Fire blast.");
		p.autocast = 1;
		} else if (p.autocast == 1) {
		p.getFrames().sendConfig(108, 0);
		p.getFrames().sendChatMessage(0, "You stop autocasting Fire blast.");
		p.autocast = 0;
		}
		break;
	case 70://Air Wave
		if(p.autocast == 0) {
		p.getFrames().sendConfig(108, 3);
		p.getFrames().sendChatMessage(0, "You are now autocasting Air wave.");
		p.autocast = 1;
		} else if (p.autocast == 1) {
		p.getFrames().sendConfig(108, 0);
		p.getFrames().sendChatMessage(0, "You stop autocasting Air wave.");
		p.autocast = 0;
		}
		break;
	case 73://Water Wave
		if(p.autocast == 0) {
		p.getFrames().sendConfig(108, 3);
		p.getFrames().sendChatMessage(0, "You are now autocasting Water wave.");
		p.autocast = 1;
		} else if (p.autocast == 1) {
		p.getFrames().sendConfig(108, 0);
		p.getFrames().sendChatMessage(0, "You stop autocasting Water wave.");
		p.autocast = 0;
		}
		break;
	case 77://Earth Wave
		if(p.autocast == 0) {
		p.getFrames().sendConfig(108, 3);
		p.getFrames().sendChatMessage(0, "You are now autocasting Earth wave.");
		p.autocast = 1;
		} else if (p.autocast == 1) {
		p.getFrames().sendConfig(108, 0);
		p.getFrames().sendChatMessage(0, "You stop autocasting Earth wave.");
		p.autocast = 0;
		}
		break;
	case 80://Fire Wave
		if(p.autocast == 0) {
		p.getFrames().sendConfig(108, 3);
		p.getFrames().sendChatMessage(0, "You are now autocasting Fire wave.");
		p.autocast = 1;
		} else if (p.autocast == 1) {
		p.getFrames().sendConfig(108, 0);
		p.getFrames().sendChatMessage(0, "You stop autocasting Fire wave.");
		p.autocast = 0;
		}
		break;
	case 68://Zamorak flames
		if(p.autocast == 0) {
		p.getFrames().sendConfig(108, 3);
		p.getFrames().sendChatMessage(0, "You are now autocasting Zamorak flames.");
		p.autocast = 1;
		} else if (p.autocast == 1) {
		p.getFrames().sendConfig(108, 0);
		p.getFrames().sendChatMessage(0, "You stop autocasting Zamorak flames.");
		p.autocast = 0;
		}
		break;
	case 67://Guthix claws
		if(p.autocast == 0) {
		p.getFrames().sendConfig(108, 3);
		p.getFrames().sendChatMessage(0, "You are now autocasting Guthix claws.");
		p.autocast = 1;
		} else if (p.autocast == 1) {
		p.getFrames().sendConfig(108, 0);
		p.getFrames().sendChatMessage(0, "You stop autocasting Guthix claws.");
		p.autocast = 0;
		}
		break;
	case 66://Saradomin strike
		if(p.autocast == 0) {
		p.getFrames().sendConfig(108, 3);
		p.getFrames().sendChatMessage(0, "You are now autocasting Saradomin strike.");
		p.autocast = 1;
		} else if (p.autocast == 1) {
		p.getFrames().sendConfig(108, 0);
		p.getFrames().sendChatMessage(0, "You stop autocasting Saradomin strike.");
		p.autocast = 0;
		}
		break;
	}
}
}
